#include <iostream>
using namespace std;
int main ()
{
    int m,n;
    do
    {
        cout<<"mast ot 1 do 4-->";
        cin>>m;
        if (m<1||m>4)
        {
            cout<<"nujno vvesti ot 1 do 4!!! \n";
        }
    }
    while  (m<1||m>4);
    do
    {
        cout<<"nominal ot 6 do 14-->";
        cin>>n;
        if (n<6||n>14)
        {
            cout<<"nujno vvesti ot 6 do 14!!! \n";
        }
    }
    while (n<6||n>14);
    cout<<"\nkarta ";
    switch (n)
    {
    case 6: cout<<"6 ";break;
    case 7: cout<<"7 ";break;
    case 8: cout<<"8 ";break;
    case 9: cout<<"9 ";break;
    case 10: cout<<"10 ";break;
    case 11: cout<<"valet ";break;
    case 12: cout<<"dama ";break;
    case 13: cout<<"korol ";break;
    case 14: cout<<"tuz ";break;
    default: cout<<"ne verno napisal cikl";break;
    }
    switch (m)
    {
    case 1: cout<<"pik";break;
    case 2: cout<<"tref";break;
    case 3: cout<<"bubi";break;
    case 4: cout<<"chervi";break;
    default: cout<<"problemki s ciklom";break;
    }
    return 0;
}
